let BaseBean = require('@/common/BaseBean');

class Bean extends BaseBean {
    constructor(param = {}) {
        super(param);
    }

    async run(params) {
        await super.run(params);
        if (!params.data.control.text) {
            if (!params.data.silence) params.data.control.form.showError('请输入' + params.data.control.param.label + '!');
            params.result = false;
        }

        return params;
    }

}

module.exports = Bean;
